package com.sne.sys.entity;

import com.baomidou.mybatisplus.annotation.SqlCondition;
import com.baomidou.mybatisplus.annotation.TableField;
import com.sne.common.entity.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 部门
 * </p>
 *
 * @author fanghh
 * @since 2020-01-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "SysDept对象", description = "部门")
public class SysDept extends BaseModel<SysDept> {

    @ApiModelProperty(value = "部门名称")
    @NotBlank(message = "部门名不为空")
    private String deptName;

    @ApiModelProperty(value = " 部门编号")
    @NotBlank(message = "部门编号不为空")
    private String deptCode;

    @ApiModelProperty(value = "排序")
    @NotNull(message = "排序值不为空")
    private Integer sort;

    @ApiModelProperty(value = "父级部门")
    private Long parentId;

    @ApiModelProperty(value = "状态")
    private Boolean state;


}
